'use strict';

describe('ripContent', function() {
  var $ripContent;

  beforeEach(module('fbdApp.auxModule'));
  beforeEach(inject(function(_$filter_) {
    $ripContent = _$filter_('ripContent');
  }));

  var input =
    "\n〖JZ(〗〖HT1XBS〗乡镇政府行政管理体制创新研究〖HT〗\r\n〖HT4K〗□喜换换1〓代表名2〓王〓二3〖HT〗\r\n〖HT5K〗(1.医院学术;2.主任;3.高级工程师)〖HT〗〖JZ）〗\r\n\r";

  var expected =
    "\n〖JZ(〗〖HT1XBS〗〖HT〗\r\n〖HT4K〗□123〖HT〗\r\n〖HT5K〗(1.;2.;3.)〖HT〗〖JZ）〗\r\n\r";
  it('should rip content', function(done) {
    expect($ripContent(input)).toBe(expected);
    return done();
  })
});
